<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SwtUserWallet extends Model
{
    use HasFactory;

    use SoftDeletes;

    use HasDateTimeFormatter;

    protected $table = 'swt_user_wallet';

    protected $hidden = ['deleted_at'];

    protected $guarded = [];

    public function addresses()
    {
        return $this->hasMany(SwtUserWalletAddress::class, 'wallet_id');
    }
}
